//
//  XMCodeInputView.h
//  POP_User
//
//  Created by Rowling on 2019/4/3.
//  Copyright © 2019年 Rowling. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ForbidInputTextField.h"

NS_ASSUME_NONNULL_BEGIN
@protocol XMCodeInputViewDelegate <NSObject>

-(void)inputComplete:(NSString *)text;

@end

@class XMCodeInputCellConfig;

@interface XMCodeInputView : UIView
@property(nonatomic,assign)UIEdgeInsets  layoutInset;
//@property(nonatomic,assign)CGSize  ItemSize;
@property(nonatomic,assign)NSInteger  inputCount;
@property(nonatomic,assign)CGFloat  space;
@property(nonatomic,weak)id<XMCodeInputViewDelegate> delegate;
@property(nonatomic,strong) XMCodeInputCellConfig * cellConfig;
@property(nonatomic,strong)NSString * text;
@property(nonatomic,strong) ForbidInputTextField * textField;
@property(nonatomic,strong) UICollectionView * collectionView;

-(void)reaload;
-(void)clear;
@end

@interface XMCodeInputCellConfig : NSObject
@property(nonatomic,assign)BOOL  hideLine;
@property(nonatomic,strong)UIColor * backGourndColor;
@property(nonatomic,assign)CGFloat cornerRadius;
@property(nonatomic,strong)UIFont * font;
@property(nonatomic,strong)UIColor * borderColor;
@property(nonatomic,assign)CGFloat borderWidth;
@property(nonatomic,assign)BOOL securityInput;
@end

NS_ASSUME_NONNULL_END
